Project Date
NLTEST 04 Oct 2021, 05:00

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
src/test/java/InspireTest/ngr/T02_Services.feature 14154 0 0 0 0 14154 337 0 337 4m 56s 975ms Passed
Tags: @step1
Feature src/test/java/InspireTest/ngr/T02_Services.feature
get details
008ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:58:59.095 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 006ms
Tags: @step1
881ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6d86c14f-cccf-41e9-a58e-ead9d52ae35d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d86c14f-cccf-41e9-a58e-ead9d52ae35d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 002ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 000ms
04:58:59.970 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/AM 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:58:59.972 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:58:59.973 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:58:59.974 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:58:59.975 [print] Informatiehuis Water 
* print operateson 000ms
04:58:59.976 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 007ms
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 002ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:58:59.106 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 001ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
911ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 891ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.010 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.011 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 002ms
04:59:00.014 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.014 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.016 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 004ms
04:59:00.018 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
014ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:58:59.117 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 010ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 002ms
Tags: @step1
934ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 915ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.056 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.057 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.058 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.059 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.060 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:00.061 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 004ms
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 002ms
009ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:58:59.134 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 007ms
Tags: @step1
947ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 927ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 002ms
04:59:00.083 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 001ms
04:59:00.085 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.086 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.087 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 002ms
04:59:00.090 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:00.091 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:58:59.991 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.857 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.858 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.859 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.859 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.860 [print] RIVM 
* print operateson 000ms
04:59:00.860 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.031 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
888ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 878ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.916 [print] https://www.gdngeoservices.nl/inspire/wfs/olie_en_gasvelden?service=WFS&request=GetCapabilities&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.917 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.918 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.919 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.919 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:00.920 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
007ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.081 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 005ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.944 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.945 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.946 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.946 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.947 [print] KNMI 
* print operateson 000ms
04:59:00.948 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.097 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd467c2cc-4026-b80a-d4e1a9d2bf79' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 872ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd467c2cc-4026-b80a-d4e1a9d2bf79' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:00.979 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/hy-n\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:00.980 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:00.981 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:00.981 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:00.982 [print] Beheer PDOK 
* print operateson 000ms
04:59:00.982 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.864 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:01.718 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:01.719 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:01.720 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:01.721 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:01.722 [print] Rijksdienst voor het Cultureel Erfgoed 
* print operateson 015ms
04:59:01.738 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=6f84efeb-fc1d-4565-a721-80735ea57dbd&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=dfe5b146-354f-4bc7-99b1-6713817afac9&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88a3c1ae-902e-4efa-8663-ddd836101929&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 003ms
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.926 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:01.794 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:01.795 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:01.796 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:01.797 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:01.798 [print] Beheer PDOK 
* print operateson 000ms
04:59:01.799 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.952 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
960ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'deaf8380-ad45-48d2-8c3e-81164471bafb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 947ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deaf8380-ad45-48d2-8c3e-81164471bafb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:01.907 [print] https://service.pdok.nl/cbs/vk500/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:01.908 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 001ms
04:59:01.910 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:01.911 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:01.912 [print] Beheer PDOK 
* print operateson 000ms
04:59:01.912 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:00.992 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
940ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 926ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:01.929 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:01.930 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:01.931 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:01.931 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:01.932 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:01.932 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:01.747 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:02.609 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:02.610 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:02.611 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:02.611 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:02.612 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:02.612 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:01.809 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f2443309-c655-4e64-b914-149050fd479c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 870ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2443309-c655-4e64-b914-149050fd479c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 002ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:02.691 [print] https://haleconnect.com/ows/services/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:02.692 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:02.692 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:02.693 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:02.693 [print] Rijkswaterstaat 
* print operateson 000ms
04:59:02.693 [print] https://haleconnect.com/services/bsp/org.292.504afbe6-0069-411b-b69b-2aae3728f735/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f2443309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"f2443309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
005ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:01.921 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 003ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:02.790 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:02.791 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:02.792 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:02.792 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:02.793 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:02.794 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:01.938 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
888ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 881ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:02.826 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:02.826 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:02.827 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:02.827 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:02.827 [print] RIVM 
* print operateson 000ms
04:59:02.828 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:02.616 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
939ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 930ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:03.553 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:03.554 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:03.555 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:03.555 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:03.556 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:03.557 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:02.700 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1d3c777a-3527-4aa1-8573-d6aeeff115e5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 872ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1d3c777a-3527-4aa1-8573-d6aeeff115e5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:03.579 [print] https://www.broinspireservices.nl/atom/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:03.580 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:03.581 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:03.581 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:03.582 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:03.582 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=E7D9F0D6-2B8D-6699-F26E-4A781228F2DD&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1d3c777a-3527-4aa1-8573-d6aeeff115e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1d3c777a-3527-4aa1-8573-d6aeeff115e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:02.799 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
898ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 007ms
* print connectUrl 000ms
04:59:03.676 [print] https://inspire.rivm.nl/atom/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:03.678 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:03.679 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:03.679 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:03.681 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 004ms
04:59:03.685 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 014ms
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:02.831 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 001ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:03.695 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:03.696 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:03.697 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:03.698 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:03.699 [print] RDW 
* print operateson 009ms
04:59:03.709 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:03.561 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
909ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd796fd8d-b1e0-465c-a55b-1e9fe885fc3d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 899ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd796fd8d-b1e0-465c-a55b-1e9fe885fc3d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:04.469 [print] https://www.broinspireservices.nl/wms/osgegmw-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:04.469 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:04.470 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:04.470 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:04.471 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:04.471 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=f99e915a-75e5-4c36-97f2-61eff692d85b&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d796fd8d-b1e0-465c-a55b-1e9fe885fc3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d796fd8d-b1e0-465c-a55b-1e9fe885fc3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:03.586 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
922ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6de8b875-c4c2-4469-ac80-0782bb67f285' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 912ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6de8b875-c4c2-4469-ac80-0782bb67f285' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:04.506 [print] https://geodata.nationaalgeoregister.nl/inspire/au/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:04.507 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:04.508 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:04.508 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:04.509 [print] Beheer PDOK 
* print operateson 000ms
04:59:04.509 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"6de8b875-c4c2-4469-ac80-0782bb67f285","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"6de8b875-c4c2-4469-ac80-0782bb67f285","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:03.714 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 001ms
Tags: @step1
913ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 001ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 900ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:04.628 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:04.629 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:04.630 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:04.630 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:04.632 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:04.632 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:03.718 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '22bedc12-e9cb-4419-8e51-dfb375d46d01' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 868ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '22bedc12-e9cb-4419-8e51-dfb375d46d01' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:04.595 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/view_NZ?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:04.596 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:04.597 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:04.597 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:04.598 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:04.598 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:04.476 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 868ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:05.351 [print] https://www.gdngeoservices.nl/inspire/wfs/zoutvelden_en_productieputten?service=WFS&request=GetCapabilities&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 001ms
04:59:05.352 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 003ms
* print protocol2 000ms
04:59:05.357 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:05.357 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:05.358 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:05.358 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:04.513 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5471a93b-cf18-43f5-9ddb-71987857435d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5471a93b-cf18-43f5-9ddb-71987857435d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:05.382 [print] https://www.broinspireservices.nl/wfs/oshhgqm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:05.383 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:05.384 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:05.384 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:05.385 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:05.385 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6050578f-0010-4bfa-b013-c8617b80ba62&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 003ms
* eval db.writeln('"5471a93b-cf18-43f5-9ddb-71987857435d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"5471a93b-cf18-43f5-9ddb-71987857435d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:04.602 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a299a4af-ccd8-4d32-b1fb-ffab77b32e0e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a299a4af-ccd8-4d32-b1fb-ffab77b32e0e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:05.458 [print] https://www.broinspireservices.nl/wfs/osgegmw-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:05.459 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:05.460 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:05.460 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:05.461 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:05.461 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=f99e915a-75e5-4c36-97f2-61eff692d85b&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a299a4af-ccd8-4d32-b1fb-ffab77b32e0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a299a4af-ccd8-4d32-b1fb-ffab77b32e0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:04.636 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '24055de7-dcff-487a-8f9a-7aee4f0d8351' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 843ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '24055de7-dcff-487a-8f9a-7aee4f0d8351' 014ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:05.505 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.83f948b1-9293-4926-b64d-40857c792f1e?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:05.505 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:05.507 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:05.508 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:05.509 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:05.509 [print] https://haleconnect.com/services/bsp/org.874.83f948b1-9293-4926-b64d-40857c792f1e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"24055de7-dcff-487a-8f9a-7aee4f0d8351","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"24055de7-dcff-487a-8f9a-7aee4f0d8351","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:05.362 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:06.228 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnstedelijkafvalwater2015/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:06.229 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:06.230 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:06.231 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:06.232 [print] Beheer PDOK 
* print operateson 000ms
04:59:06.232 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:05.398 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:06.255 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:06.257 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:06.258 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:06.258 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:06.259 [print] Beheer PDOK 
* print operateson 000ms
04:59:06.260 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:05.468 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:06.325 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwater2015/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:06.326 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:06.327 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:06.328 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:06.329 [print] Beheer PDOK 
* print operateson 001ms
04:59:06.330 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:05.517 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 001ms
Tags: @step1
891ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 878ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 002ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:06.407 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnmarienestrategie2018/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:06.409 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:06.410 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:06.410 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:06.411 [print] Beheer PDOK 
* print operateson 000ms
04:59:06.411 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:06.238 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
955ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9ff1a13c-d1e0-4150-8523-91cb489ae1a4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 926ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff1a13c-d1e0-4150-8523-91cb489ae1a4' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:07.173 [print] https://geodata.nationaalgeoregister.nl/atom/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:07.174 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:07.174 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 001ms
* print protocol 000ms
04:59:07.176 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:07.178 [print] Beheer PDOK 
* print operateson 007ms
04:59:07.186 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5a1adb58-0bbe-425d-b0fe-577a6c0a4228#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=701d4eb8-8aae-4708-bba5-3edf6987676d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d25fe199-2430-48fd-ad57-5b5f79f73cdf#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=bbece924-9aab-4e00-8392-bce36b8f494e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8eee71f9-9365-490d-9484-00263c6fa35c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2af8df10-81ba-434a-8125-34fe8f127cf9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6cde2ce7-3ecd-4785-b7b8-d62c3381efe9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3229e4d7-4bcd-4b94-819d-8e62de69ce2e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 009ms
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:06.265 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e27e61d8-25b1-45ee-a2df-071312ba8a69' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e27e61d8-25b1-45ee-a2df-071312ba8a69' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:07.134 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwateractueel/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:07.135 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:07.136 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:07.136 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:07.137 [print] Beheer PDOK 
* print operateson 001ms
04:59:07.139 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:06.335 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e91719b1-a139-42cf-8a1a-db78cd7477f8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 844ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e91719b1-a139-42cf-8a1a-db78cd7477f8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 003ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 002ms
* print connectUrl 000ms
04:59:07.192 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwater2009/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:07.193 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:07.193 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:07.194 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 001ms
04:59:07.195 [print] Beheer PDOK 
* print operateson 000ms
04:59:07.195 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw2006-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw2006-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e91719b1-a139-42cf-8a1a-db78cd7477f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"e91719b1-a139-42cf-8a1a-db78cd7477f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:06.417 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
854ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2931d583-9633-49d3-ad38-aabea82f6751' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 842ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:07.266 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:07.267 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:07.268 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:07.268 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:07.270 [print] Beheer PDOK 
* print operateson 000ms
04:59:07.271 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:07.143 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
868ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.008 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.009 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.010 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.010 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.011 [print] Beheer PDOK 
* print operateson 000ms
04:59:08.012 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:07.199 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.056 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.057 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.057 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.058 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.058 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:08.058 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
007ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:07.204 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 004ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 002ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 874ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.092 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.092 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.093 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.093 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.094 [print] RIVM 
* print operateson 000ms
04:59:08.094 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:07.282 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 001ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3d01c1ca-973c-4652-baa5-39458bb9e181' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d01c1ca-973c-4652-baa5-39458bb9e181' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.153 [print] https://geodata.nationaalgeoregister.nl/schelpdierenpercelen/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.154 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.155 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.155 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.156 [print] Beheer PDOK 
* print operateson 000ms
04:59:08.157 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
004ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.022 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 003ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
871ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1ff0035a-acc0-4a67-a76c-3b79646b4eef' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ff0035a-acc0-4a67-a76c-3b79646b4eef' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.896 [print] https://inspire.caris.nl/server/services/ows/view/map/amplitude-getij_IVS?request=GetCapabilities&service=WMS&version=1.3.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.896 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.897 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.897 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.898 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:08.898 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1ff0035a-acc0-4a67-a76c-3b79646b4eef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1ff0035a-acc0-4a67-a76c-3b79646b4eef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.063 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
878ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 865ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc' 003ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.939 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.939 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.940 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.941 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.941 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:08.941 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
004ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.099 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 002ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0426f471-f325-42ed-a775-81c397592e86' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:08.964 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:08.965 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:08.966 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:08.966 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:08.967 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:08.968 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.161 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd0b60508-5bf5-4360-b34a-875f10a9a711' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd0b60508-5bf5-4360-b34a-875f10a9a711' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:09.025 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:09.026 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:09.026 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:09.027 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:09.028 [print] Beheer PDOK 
* print operateson 000ms
04:59:09.028 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d0b60508-5bf5-4360-b34a-875f10a9a711","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d0b60508-5bf5-4360-b34a-875f10a9a711","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.902 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
896ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 887ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:09.796 [print] https://inspire.rivm.nl/geoserver/airq/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:09.797 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:09.798 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:09.798 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:09.799 [print] RIVM 
* print operateson 000ms
04:59:09.799 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.946 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
895ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 886ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:09.839 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:09.840 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:09.841 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:09.842 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:09.843 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:09.843 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:08.972 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
895ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 885ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:09.865 [print] https://service.pdok.nl/cbs/wb2019/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:09.866 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:09.867 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:09.867 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:09.868 [print] Beheer PDOK 
* print operateson 000ms
04:59:09.869 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:09.034 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '54122631-d343-40be-9c28-e44626b37a0e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:09.902 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:09.903 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:09.904 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:09.904 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:09.905 [print] Beheer PDOK 
* print operateson 000ms
04:59:09.906 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 004ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:09.805 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:10.670 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:10.670 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:10.671 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:10.672 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:10.673 [print] Beheer PDOK 
* print operateson 000ms
04:59:10.673 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:09.848 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:10.716 [print] https://service.pdok.nl/kadaster/gebouwen/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:10.717 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:10.718 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:10.718 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:10.719 [print] Beheer PDOK 
* print operateson 000ms
04:59:10.719 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:09.873 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
879ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b7880739-a701-4cc0-bb32-2bba61fa8924' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 869ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b7880739-a701-4cc0-bb32-2bba61fa8924' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:10.750 [print] https://www.gdngeoservices.nl/inspire/wms/aardwarmte?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:10.751 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:10.752 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:10.752 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:10.753 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:10.754 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:09.916 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
882ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '070014b4-1f63-4819-beea-000b7d5f8d86' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 875ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '070014b4-1f63-4819-beea-000b7d5f8d86' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:10.799 [print] https://www.broinspireservices.nl/atom/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:10.800 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:10.800 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:10.800 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:10.801 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:10.801 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"070014b4-1f63-4819-beea-000b7d5f8d86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"070014b4-1f63-4819-beea-000b7d5f8d86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:10.678 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
848ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 839ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:11.524 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:11.525 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:11.525 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:11.525 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:11.526 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:11.526 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:10.723 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 867ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:11.598 [print] https://inspire.caris.nl/geoserver/auwms/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:11.599 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:11.600 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:11.600 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:11.601 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:11.602 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4d514a2b-4a7e-4686-b9ea-87cb3e17ed52&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:10.758 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 866ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:11.631 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:11.632 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:11.633 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:11.634 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:11.634 [print] Beheer PDOK 
* print operateson 001ms
04:59:11.635 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:10.804 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '755d488b-7b94-4883-95be-6aa279604f85' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:11.670 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:11.670 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:11.671 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:11.671 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:11.672 [print] RIVM 
* print operateson 000ms
04:59:11.672 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:11.531 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:12.391 [print] https://inspire.caris.nl/geoserver/auwms/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:12.392 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:12.393 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:12.393 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:12.394 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:12.395 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:11.607 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1d568785-efdd-429d-b491-56f785c3656a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 868ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1d568785-efdd-429d-b491-56f785c3656a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:12.482 [print] https://geodata.nationaalgeoregister.nl/inspire/au/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:12.483 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:12.484 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:12.484 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:12.484 [print] Beheer PDOK 
* print operateson 000ms
04:59:12.484 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1d568785-efdd-429d-b491-56f785c3656a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1d568785-efdd-429d-b491-56f785c3656a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:11.639 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:12.507 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:12.508 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:12.509 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:12.510 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:12.511 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 001ms
04:59:12.513 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:11.676 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:12.535 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:12.536 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:12.537 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:12.538 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:12.539 [print] Beheer PDOK 
* print operateson 000ms
04:59:12.539 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:12.399 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:13.253 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:13.254 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:13.254 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:13.255 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:13.256 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:13.256 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:12.488 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
884ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 875ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:13.370 [print] https://inspire.caris.nl/geoserver/auwms/wms?request=GetCapabilities&service=WMS&version=1.3.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:13.371 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:13.371 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:13.372 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:13.373 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:13.373 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4cda487b-c467-490c-a843-6563fec016be#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:12.516 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
937ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 899ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 014ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:13.438 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 009ms
* print protocol1 000ms
04:59:13.448 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:13.450 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:13.451 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:13.452 [print] RIVM 
* print operateson 000ms
04:59:13.452 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 003ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:12.544 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
903ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '03c39474-aef9-4169-95da-9890af440b14' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 891ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:13.444 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:13.444 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:13.445 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:13.445 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:13.446 [print] RIVM 
* print operateson 000ms
04:59:13.446 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:13.261 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:14.128 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:14.129 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:14.130 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:14.131 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:14.131 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:14.131 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:13.377 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:14.239 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:14.240 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:14.241 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:14.241 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:14.242 [print] RIVM 
* print operateson 000ms
04:59:14.243 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:13.453 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '00e8746f-5031-413e-8343-9203c8ea82ee' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '00e8746f-5031-413e-8343-9203c8ea82ee' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:14.309 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/download_NZ?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:14.309 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:14.310 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:14.310 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:14.311 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:14.312 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:13.458 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
889ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 878ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:14.347 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:14.348 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:14.349 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:14.349 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:14.350 [print] Beheer PDOK 
* print operateson 000ms
04:59:14.351 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:14.136 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
931ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 923ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.067 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.068 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.068 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.068 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.069 [print] Beheer PDOK 
* print operateson 000ms
04:59:15.069 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:14.248 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a931e334-b752-4935-8a98-00eddc443789' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 867ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.123 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.124 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.124 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.125 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.126 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:15.126 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:14.317 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'KKHRN250-DXU9-167I-W6SO-8566T16B30VE' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'KKHRN250-DXU9-167I-W6SO-8566T16B30VE' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.187 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_geotop_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.188 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.188 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.189 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.189 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:15.190 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=7D35598D-DFBF-C64D-0F1A-92A80A45EB14&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"KKHRN250-DXU9-167I-W6SO-8566T16B30VE","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"KKHRN250-DXU9-167I-W6SO-8566T16B30VE","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:14.355 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.214 [print] https://geodata.nationaalgeoregister.nl/rvo/inspire/invasieve-exoten/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.214 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.215 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.216 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.216 [print] Beheer PDOK 
* print operateson 000ms
04:59:15.216 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.074 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a149d97f-0d55-462e-9956-5b47bea00a8d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a149d97f-0d55-462e-9956-5b47bea00a8d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.941 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.942 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.943 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.943 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.944 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:15.944 [print] https://haleconnect.com/services/bsp/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a149d97f-0d55-462e-9956-5b47bea00a8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a149d97f-0d55-462e-9956-5b47bea00a8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.130 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '94ed09fe-1753-4861-8c62-d66251b7cde3' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94ed09fe-1753-4861-8c62-d66251b7cde3' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:15.992 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:15.993 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:15.994 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:15.994 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:15.995 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:15.995 [print] https://haleconnect.com/services/bsp/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"94ed09fe-1753-4861-8c62-d66251b7cde3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"94ed09fe-1753-4861-8c62-d66251b7cde3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.193 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
855ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.047 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.048 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.049 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.049 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.050 [print] Beheer PDOK 
* print operateson 000ms
04:59:16.050 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.220 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
848ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 838ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.066 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.066 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.067 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.067 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.068 [print] KNMI 
* print operateson 000ms
04:59:16.069 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.948 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.817 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.818 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.819 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.819 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.820 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:16.821 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:15.999 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.856 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.857 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.858 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.859 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.860 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:16.860 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.055 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.921 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.921 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.922 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.923 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.924 [print] KNMI 
* print operateson 000ms
04:59:16.924 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.073 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
888ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 872ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:16.952 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:16.953 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:16.954 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:16.954 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:16.955 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:16.956 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 005ms
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.825 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:17.683 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:17.684 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:17.685 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:17.685 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:17.686 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:17.687 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.865 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 867ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:17.739 [print] https://www.gdngeoservices.nl/inspire/wms/zoutvelden_en_productieputten?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:17.740 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:17.741 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:17.741 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:17.741 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:17.742 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.929 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
887ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 875ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:17.812 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:17.812 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:17.814 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:17.814 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:17.815 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:17.816 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:16.965 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
898ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '745968a3-37af-4406-988e-ec595f58c7fe' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 886ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:17.860 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:17.861 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:17.862 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:17.862 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:17.863 [print] RIVM 
* print operateson 000ms
04:59:17.864 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:17.691 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
846ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '42da491e-d8b9-47ba-af65-acb15ea8a055' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 838ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42da491e-d8b9-47ba-af65-acb15ea8a055' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:18.536 [print] https://www.broinspireservices.nl/wms/osamepl-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:18.537 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:18.538 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:18.538 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:18.538 [print]  
* print operateson 000ms
04:59:18.538 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:17.745 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
874ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd293204f-6581-4b0a-811b-1dcce97adedd' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd293204f-6581-4b0a-811b-1dcce97adedd' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:18.617 [print] https://geodata.nationaalgeoregister.nl/publiekrechtelijkebeperking/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:18.618 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:18.618 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:18.619 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:18.620 [print] Beheer PDOK 
* print operateson 000ms
04:59:18.620 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:17.822 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'beb6dd70-7834-475f-9acc-954a809dfe87' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'beb6dd70-7834-475f-9acc-954a809dfe87' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:18.677 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:18.678 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:18.678 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:18.679 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:18.680 [print] Beheer PDOK 
* print operateson 000ms
04:59:18.680 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"beb6dd70-7834-475f-9acc-954a809dfe87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"beb6dd70-7834-475f-9acc-954a809dfe87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:17.869 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:18.725 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:18.726 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:18.727 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:18.727 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:18.728 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:18.729 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:18.543 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
857ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 848ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:19.398 [print] #notpresent 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:19.399 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:19.399 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:19.400 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:19.400 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:19.400 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:18.624 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5be1b57b-2cac-4119-92eb-700346543d47' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:19.484 [print] https://inspire.caris.nl/geoserver/mu/wfs?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:19.485 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:19.485 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:19.486 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:19.486 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:19.486 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:18.684 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:19.545 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:19.545 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:19.546 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:19.546 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:19.546 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:19.547 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:18.733 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
899ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 892ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:19.631 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:19.632 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:19.632 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:19.632 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:19.633 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:19.633 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:19.405 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 002ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '95e2c712-1b91-4f24-9453-c56b95227717' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:20.265 [print] https://inspire.rivm.nl/geoserver/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:20.266 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:20.267 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:20.267 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:20.268 [print] RIVM 
* print operateson 000ms
04:59:20.269 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:19.490 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
879ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 865ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:20.363 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 004ms
04:59:20.368 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:20.369 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:20.370 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:20.371 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:20.371 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:19.550 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
855ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:20.405 [print] https://inspire.caris.nl/geoserver2/gn/wfs?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:20.405 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:20.406 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:20.406 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:20.407 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:20.407 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:19.637 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:20.499 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:20.500 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:20.500 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:20.500 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:20.501 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:20.501 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 002ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:20.273 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
851ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '539ec652-482d-4806-a830-0458cf8be477' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 841ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '539ec652-482d-4806-a830-0458cf8be477' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:21.122 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/EF 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:21.123 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:21.123 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:21.124 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:21.124 [print] Informatiehuis Water 
* print operateson 000ms
04:59:21.124 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:20.376 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:21.245 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:21.246 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:21.246 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:21.247 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:21.247 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:21.247 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:20.411 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 001ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:21.270 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:21.270 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:21.271 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:21.271 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:21.272 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:21.272 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:20.508 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
880ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 869ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:21.386 [print] https://www.gdngeoservices.nl/inspire/wms/olie_en_gasvelden?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:21.387 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:21.388 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:21.388 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:21.389 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:21.390 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:21.130 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '702060c1-b3fd-44ec-8cc6-d4249d150110' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '702060c1-b3fd-44ec-8cc6-d4249d150110' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:21.988 [print] http://services.inspire-provincies.nl/HabitatsAndBiotopes/services/download_HB?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:21.988 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:21.989 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:21.989 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:21.990 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:21.990 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:21.252 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 003ms
* print connectUrl 000ms
04:59:22.116 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 001ms
04:59:22.118 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:22.119 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:22.119 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:22.119 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:22.119 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:21.277 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:22.139 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:22.139 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:22.140 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:22.140 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:22.141 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:22.141 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:21.395 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
854ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 843ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 000ms
04:59:22.247 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:22.248 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:22.248 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:22.249 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:22.250 [print] KNMI 
* print operateson 000ms
04:59:22.250 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:21.994 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '66805d91-a5f6-4265-bd36-ef13a429c97e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '66805d91-a5f6-4265-bd36-ef13a429c97e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:22.847 [print] https://geodata.nationaalgeoregister.nl/bzk/bro-bodemkaart/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:22.847 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:22.848 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:22.848 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:22.849 [print] Beheer PDOK 
* print operateson 003ms
04:59:22.852 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"66805d91-a5f6-4265-bd36-ef13a429c97e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"66805d91-a5f6-4265-bd36-ef13a429c97e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:22.123 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f1dadc2c-6de2-415a-a2b7-aaf057ddda43' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1dadc2c-6de2-415a-a2b7-aaf057ddda43' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:22.990 [print] https://geodata.nationaalgeoregister.nl/inspireadressen/v2/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:22.991 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:22.991 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:22.992 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:22.992 [print] Beheer PDOK 
* print operateson 000ms
04:59:22.992 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"f1dadc2c-6de2-415a-a2b7-aaf057ddda43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f1dadc2c-6de2-415a-a2b7-aaf057ddda43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:22.145 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 866ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.017 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:23.018 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:23.019 [print] OGC:SOS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.019 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.020 [print] RIVM 
* print operateson 002ms
04:59:23.022 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:22.254 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f5660ac6-8031-4acc-832c-1d1b82b062ba' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5660ac6-8031-4acc-832c-1d1b82b062ba' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.115 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:23.115 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:23.116 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.117 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.117 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:23.118 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:22.857 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.718 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:23.719 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:23.719 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.719 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.720 [print] Beheer PDOK 
* print operateson 000ms
04:59:23.720 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 003ms
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:22.997 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
889ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '49ff0584-a173-4098-824c-119edf8447f7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 879ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.882 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:23.883 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:23.884 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.885 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.886 [print] Rijksdienst voor het Cultureel Erfgoed 
* print operateson 001ms
04:59:23.887 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=6f84efeb-fc1d-4565-a721-80735ea57dbd&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=dfe5b146-354f-4bc7-99b1-6713817afac9&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88a3c1ae-902e-4efa-8663-ddd836101929&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.026 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
885ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c3ee15e4-38bf-4d54-9c0b-cfe0e609d448' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 871ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3ee15e4-38bf-4d54-9c0b-cfe0e609d448' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 003ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.908 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn1\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:23.909 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:23.911 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.911 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.912 [print] Beheer PDOK 
* print operateson 000ms
04:59:23.912 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5a1adb58-0bbe-425d-b0fe-577a6c0a4228#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c3ee15e4-38bf-4d54-9c0b-cfe0e609d448","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c3ee15e4-38bf-4d54-9c0b-cfe0e609d448","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.121 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6b608d4e-5628-4d59-97fc-0322c57357b2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b608d4e-5628-4d59-97fc-0322c57357b2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:23.978 [print] https://geodata.nationaalgeoregister.nl/schelpdierenpercelen/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:23.979 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:23.980 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:23.980 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:23.980 [print] Beheer PDOK 
* print operateson 000ms
04:59:23.981 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.727 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68d14b1c-71ad-4ce7-8267-45787a80c2d4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68d14b1c-71ad-4ce7-8267-45787a80c2d4' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 001ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:24.595 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/ad\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:24.596 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:24.597 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:24.597 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:24.598 [print] Beheer PDOK 
* print operateson 000ms
04:59:24.598 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.891 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5b40b9b4-fcb2-4553-bcab-34824c43c992' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b40b9b4-fcb2-4553-bcab-34824c43c992' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:24.757 [print] https://geodata.nationaalgeoregister.nl/inspire/ad/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:24.758 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:24.759 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:24.759 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:24.760 [print] Beheer PDOK 
* print operateson 000ms
04:59:24.760 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.916 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
879ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7a914681-61bd-4f67-902b-45037a00c469' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 870ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a914681-61bd-4f67-902b-45037a00c469' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:24.793 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn2\/wms?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:24.794 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:24.794 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:24.795 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:24.795 [print] Beheer PDOK 
* print operateson 000ms
04:59:24.795 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7939fd42-cf88-42c5-ab3b-232cf232a3ac#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7a914681-61bd-4f67-902b-45037a00c469","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7a914681-61bd-4f67-902b-45037a00c469","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:23.984 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ef2a7962-8bb4-483f-ca52-85123f579' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ca52-85123f579' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:24.850 [print] http://data.waterkwaliteitsportaal.nl/inspire/ds/nl.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:24.851 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:24.851 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:24.852 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:24.853 [print] Informatiehuis Water 
* print operateson 000ms
04:59:24.853 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:24.602 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'feeae7d3-7485-4a39-895c-ed65e945ced0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'feeae7d3-7485-4a39-895c-ed65e945ced0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:25.464 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_regis_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:25.465 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:25.466 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:25.466 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:25.467 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:25.467 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=E7D9F0D6-2B8D-6699-F26E-4A781228F2DD&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"feeae7d3-7485-4a39-895c-ed65e945ced0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"feeae7d3-7485-4a39-895c-ed65e945ced0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:24.765 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:25.629 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:25.631 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:25.631 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:25.632 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:25.632 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:25.632 [print] https://haleconnect.com/services/bsp/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:24.800 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
894ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 886ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:25.693 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:25.693 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:25.694 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:25.694 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:25.695 [print] Beheer PDOK 
* print operateson 000ms
04:59:25.695 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:24.858 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
898ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 889ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:25.755 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:25.756 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:25.756 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:25.756 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:25.757 [print] Beheer PDOK 
* print operateson 000ms
04:59:25.757 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:25.472 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 848ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:26.327 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wms?request=Getcapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:26.327 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:26.328 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:26.328 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:26.328 [print] Beheer PDOK 
* print operateson 000ms
04:59:26.328 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:25.636 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1601e160-91e8-4091-9aca-10294f819d42' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:26.495 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:26.496 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:26.496 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:26.497 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:26.497 [print] Beheer PDOK 
* print operateson 000ms
04:59:26.497 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:25.699 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
857ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:26.554 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:26.554 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:26.555 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:26.555 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:26.555 [print] Beheer PDOK 
* print operateson 000ms
04:59:26.555 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:25.761 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
857ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:26.617 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:26.617 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:26.618 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:26.618 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:26.618 [print] Beheer PDOK 
* print operateson 000ms
04:59:26.619 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:26.333 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:27.191 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:27.191 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:27.192 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:27.192 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:27.193 [print] Beheer PDOK 
* print operateson 000ms
04:59:27.193 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:26.501 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:27.364 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:27.365 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:27.365 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:27.366 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:27.366 [print] Beheer PDOK 
* print operateson 000ms
04:59:27.366 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:26.560 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:27.418 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:27.419 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:27.420 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:27.420 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:27.421 [print] Beheer PDOK 
* print operateson 000ms
04:59:27.422 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:26.622 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
895ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '25c69c01-8dfa-406f-bbcb-24feba25dcc6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25c69c01-8dfa-406f-bbcb-24feba25dcc6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 021ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 000ms
04:59:27.509 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wms/v1?SERVICE=WMS&REQUEST=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:27.510 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:27.511 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:27.511 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:27.512 [print] Beheer PDOK 
* print operateson 000ms
04:59:27.513 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 004ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:27.196 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
875ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:28.068 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wms/?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:28.068 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:28.069 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:28.070 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:28.070 [print] Beheer PDOK 
* print operateson 000ms
04:59:28.071 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:27.370 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'db1e010a-96f8-453e-b63c-9c27d6273157' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db1e010a-96f8-453e-b63c-9c27d6273157' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:28.226 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestandbodemgebruik2015\/wms?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:28.227 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:28.228 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:28.228 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:28.229 [print] Beheer PDOK 
* print operateson 000ms
04:59:28.229 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:27.425 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e08079df-6c19-486e-916e-5c9948cfafea' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e08079df-6c19-486e-916e-5c9948cfafea' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:28.290 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wfs?&request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:28.290 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:28.291 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:28.291 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:28.292 [print] Beheer PDOK 
* print operateson 000ms
04:59:28.292 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:27.530 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd94b1eca-8a7d-4dc4-b979-36257878758f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd94b1eca-8a7d-4dc4-b979-36257878758f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:28.396 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:28.396 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:28.397 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:28.397 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:28.398 [print] Beheer PDOK 
* print operateson 000ms
04:59:28.398 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:28.076 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '25a99d92-ea8a-4163-82ab-3521c9b0c96b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25a99d92-ea8a-4163-82ab-3521c9b0c96b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:28.948 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestandbodemgebruik2015\/wfs?service=WFS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:28.948 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:28.949 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:28.949 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 003ms
* print organisationpath 000ms
04:59:28.953 [print] Beheer PDOK 
* print operateson 000ms
04:59:28.953 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:28.233 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '35359958-c40a-486f-9cf5-567a94de905e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '35359958-c40a-486f-9cf5-567a94de905e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:29.101 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestuurlijkegrenzen\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:29.102 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:29.103 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:29.103 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:29.104 [print] Beheer PDOK 
* print operateson 000ms
04:59:29.105 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe24c2a7-b121-4177-887a-fa16d943729b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"35359958-c40a-486f-9cf5-567a94de905e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"35359958-c40a-486f-9cf5-567a94de905e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
004ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:28.296 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 003ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c6fa88ab-e440-414b-a773-793c4ce6d8df' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6fa88ab-e440-414b-a773-793c4ce6d8df' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:29.159 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestuurlijkegrenzen\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:29.160 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:29.160 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 002ms
04:59:29.163 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:29.164 [print] Beheer PDOK 
* print operateson 000ms
04:59:29.164 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe24c2a7-b121-4177-887a-fa16d943729b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c6fa88ab-e440-414b-a773-793c4ce6d8df","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c6fa88ab-e440-414b-a773-793c4ce6d8df","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:28.401 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:29.265 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:29.265 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:29.265 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:29.266 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:29.266 [print] Beheer PDOK 
* print operateson 000ms
04:59:29.266 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:28.957 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a1ed8a00-da07-472e-9627-99175d437c94' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1ed8a00-da07-472e-9627-99175d437c94' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:29.811 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:29.812 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:29.813 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:29.814 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:29.814 [print] Beheer PDOK 
* print operateson 000ms
04:59:29.815 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:29.108 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7827b68f-647e-46cc-a02a-cac48eaa5dda' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7827b68f-647e-46cc-a02a-cac48eaa5dda' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:29.981 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholnacht/v2/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:29.981 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:29.982 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:29.982 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:29.982 [print] Beheer PDOK 
* print operateson 000ms
04:59:29.983 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:29.167 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
846ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 837ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.012 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:30.012 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:30.013 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.013 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.014 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.014 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:29.269 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '74620aa8-4fa2-414d-8350-50d93e500da8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74620aa8-4fa2-414d-8350-50d93e500da8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.132 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wfs?service=WFS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:30.132 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:30.133 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.133 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.134 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.134 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=50eef6be-619d-4e16-9b92-48971109b636","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=8de2f5eb-b09f-4f6d-8397-8878a1b86238","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:29.819 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4b6752ae-65d6-44b5-98ef-1fc30f4fd92d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b6752ae-65d6-44b5-98ef-1fc30f4fd92d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.679 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:30.681 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:30.681 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.682 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.683 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.684 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50eef6be-619d-4e16-9b92-48971109b636#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8de2f5eb-b09f-4f6d-8397-8878a1b86238#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"4b6752ae-65d6-44b5-98ef-1fc30f4fd92d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4b6752ae-65d6-44b5-98ef-1fc30f4fd92d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:29.986 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
936ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c474b492-da63-4a33-9bdd-b3709ce2cd6c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 926ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c474b492-da63-4a33-9bdd-b3709ce2cd6c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.920 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholnacht/v2/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:30.921 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:30.922 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.922 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.923 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.923 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.017 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
910ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a035801a-3256-4a36-9f81-02421aacee17' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 899ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a035801a-3256-4a36-9f81-02421aacee17' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.925 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2018/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:30.926 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:30.927 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.928 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.929 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.929 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a035801a-3256-4a36-9f81-02421aacee17","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a035801a-3256-4a36-9f81-02421aacee17","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.138 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:30.991 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:30.991 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:30.992 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:30.993 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:30.994 [print] Beheer PDOK 
* print operateson 000ms
04:59:30.994 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.688 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
868ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:31.552 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:31.553 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:31.554 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:31.554 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:31.556 [print] Beheer PDOK 
* print operateson 000ms
04:59:31.557 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.940 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
906ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 894ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:31.840 [print] https://geodata.nationaalgeoregister.nl/inspire/bu/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:31.841 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:31.841 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:31.842 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:31.842 [print] Beheer PDOK 
* print operateson 000ms
04:59:31.842 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 004ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.933 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:31.793 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2020/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:31.793 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:31.794 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:31.794 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:31.795 [print] Beheer PDOK 
* print operateson 000ms
04:59:31.795 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:30.999 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:31.870 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2020/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:31.871 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:31.872 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:31.872 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:31.873 [print] Beheer PDOK 
* print operateson 000ms
04:59:31.873 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:31.561 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:32.418 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:32.418 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:32.419 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:32.419 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:32.420 [print] Beheer PDOK 
* print operateson 000ms
04:59:32.420 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:31.799 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd415c10a-8dbf-4c01-8061-4689e5db38ac' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 867ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd415c10a-8dbf-4c01-8061-4689e5db38ac' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:32.674 [print] https:\/\/geodata.nationaalgeoregister.nl\/ecotopen\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:32.675 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:32.675 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:32.675 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:32.676 [print] Beheer PDOK 
* print operateson 000ms
04:59:32.676 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=78d31ab4-4116-45b7-bcf5-e14960916b0f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2220c0dd-3720-4e39-a130-171531c1e694#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b250f3a4-ed78-4c85-8cd5-f1af43841c6e#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d415c10a-8dbf-4c01-8061-4689e5db38ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d415c10a-8dbf-4c01-8061-4689e5db38ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:31.850 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
853ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9940c446-6fd4-4ab3-a4de-7d0ee028a8d1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 844ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9940c446-6fd4-4ab3-a4de-7d0ee028a8d1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:32.702 [print] https:\/\/geodata.nationaalgeoregister.nl\/ecotopen\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:32.702 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:32.703 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:32.703 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:32.704 [print] Beheer PDOK 
* print operateson 000ms
04:59:32.704 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=2220c0dd-3720-4e39-a130-171531c1e694#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=78d31ab4-4116-45b7-bcf5-e14960916b0f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=b250f3a4-ed78-4c85-8cd5-f1af43841c6e#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9940c446-6fd4-4ab3-a4de-7d0ee028a8d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9940c446-6fd4-4ab3-a4de-7d0ee028a8d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:31.876 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
883ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2b9da196-422e-4b0e-a5ba-ba41ade308e9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2b9da196-422e-4b0e-a5ba-ba41ade308e9' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:32.753 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 003ms
* print protocol1 000ms
04:59:32.756 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:32.757 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:32.758 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:32.759 [print] Beheer PDOK 
* print operateson 000ms
04:59:32.759 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:32.424 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7af7b20d-3f8a-4d7f-8124-73980535a4f6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7af7b20d-3f8a-4d7f-8124-73980535a4f6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:33.281 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_dgm_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:33.283 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:33.283 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:33.284 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:33.284 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:33.285 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7af7b20d-3f8a-4d7f-8124-73980535a4f6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7af7b20d-3f8a-4d7f-8124-73980535a4f6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:32.680 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
982ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4f4c7848-1767-4c67-be08-87d45d07f313' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 898ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4f4c7848-1767-4c67-be08-87d45d07f313' 002ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 002ms
* def title = get response //citation/CI_Citation/title/CharacterString 002ms
* def email = get response //electronicMailAddress/CharacterString 002ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 002ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 002ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:33.602 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 026ms
* print protocol1 000ms
04:59:33.629 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 007ms
* print protocol2 000ms
04:59:33.637 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:33.638 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 002ms
* print organisationpath 019ms
04:59:33.660 [print] Beheer PDOK 
* print operateson 000ms
04:59:33.660 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 003ms
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:32.708 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
1s 001ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1fa220c2-5f2e-4943-a57e-c291cc35084b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 923ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1fa220c2-5f2e-4943-a57e-c291cc35084b' 007ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 002ms
* def title = get response //citation/CI_Citation/title/CharacterString 002ms
* def email = get response //electronicMailAddress/CharacterString 022ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 011ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 002ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 008ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:33.696 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 002ms
* print protocol1 000ms
04:59:33.699 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:33.701 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 003ms
* print protocol 000ms
04:59:33.705 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 002ms
* print organisationpath 000ms
04:59:33.709 [print] Beheer PDOK 
* print operateson 000ms
04:59:33.710 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 002ms
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:32.764 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
935ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'af4841b5-ce83-4edb-af41-429a21140316' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 885ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 016ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 002ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 010ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:33.691 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:33.693 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:33.694 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 001ms
04:59:33.695 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:33.698 [print] Beheer PDOK 
* print operateson 000ms
04:59:33.698 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 002ms
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:33.293 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
904ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b0119753-5625-4500-9df3-13823ff9868f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 881ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:34.190 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:34.191 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:34.193 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:34.193 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 002ms
04:59:34.196 [print] Beheer PDOK 
* print operateson 000ms
04:59:34.197 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
015ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:33.672 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 014ms
Tags: @step1
900ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 881ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 003ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:34.578 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:34.579 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:34.580 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:34.580 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:34.581 [print] Beheer PDOK 
* print operateson 000ms
04:59:34.581 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 006ms
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:33.707 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
884ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 873ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:34.589 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:34.590 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:34.590 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 001ms
04:59:34.592 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:34.593 [print] Beheer PDOK 
* print operateson 000ms
04:59:34.593 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
010ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:33.717 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 009ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
900ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6a129fd1-0988-4b8a-975a-6ff134b6754a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 888ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6a129fd1-0988-4b8a-975a-6ff134b6754a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:34.623 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegennacht/v1/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:34.623 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:34.624 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:34.624 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:34.625 [print] Beheer PDOK 
* print operateson 000ms
04:59:34.625 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 003ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:34.204 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 001ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '42f5363b-cea7-4163-a4e9-bc2d1a7a243c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42f5363b-cea7-4163-a4e9-bc2d1a7a243c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:35.069 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegennacht/v1/wfs?service=WFS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:35.071 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:35.072 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:35.072 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:35.073 [print] Beheer PDOK 
* print operateson 000ms
04:59:35.073 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:34.595 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
904ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ce963e61-779f-470f-a99d-48d9796e5ba3' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 895ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce963e61-779f-470f-a99d-48d9796e5ba3' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:35.498 [print] https://geodata.nationaalgeoregister.nl/inspire/gn/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:35.499 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:35.499 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:35.500 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:35.500 [print] Beheer PDOK 
* print operateson 000ms
04:59:35.500 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ce963e61-779f-470f-a99d-48d9796e5ba3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ce963e61-779f-470f-a99d-48d9796e5ba3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:34.599 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
952ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7e87a655-c4eb-404d-9d0a-efa2dccef7cc' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 944ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7e87a655-c4eb-404d-9d0a-efa2dccef7cc' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:35.550 [print] https://geodata.nationaalgeoregister.nl/inspire/gn/wfs?&request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:35.551 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:35.551 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:35.551 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:35.552 [print] Beheer PDOK 
* print operateson 000ms
04:59:35.552 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7e87a655-c4eb-404d-9d0a-efa2dccef7cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7e87a655-c4eb-404d-9d0a-efa2dccef7cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:34.632 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
942ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '62dc32f1-853c-416a-876b-6e083554f1b6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 932ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62dc32f1-853c-416a-876b-6e083554f1b6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:35.571 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegenetmaal/v1/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:35.571 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:35.572 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:35.573 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:35.574 [print] Beheer PDOK 
* print operateson 000ms
04:59:35.575 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:35.078 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 001ms
Tags: @step1
952ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 919ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 023ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:36.030 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:36.030 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:36.031 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:36.031 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:36.033 [print] Beheer PDOK 
* print operateson 000ms
04:59:36.033 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:35.504 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e264c1e4-90fe-4968-bbf2-7019f6095348' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e264c1e4-90fe-4968-bbf2-7019f6095348' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:36.364 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegenetmaal/v1/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:36.364 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:36.365 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:36.365 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:36.366 [print] Beheer PDOK 
* print operateson 000ms
04:59:36.366 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:35.556 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
880ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68722979-8d6c-4ee4-a81a-8381d2588fe5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 872ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68722979-8d6c-4ee4-a81a-8381d2588fe5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:36.434 [print] https://geodata.nationaalgeoregister.nl/nl/rws/hy-n/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:36.435 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:36.435 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:36.436 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:36.436 [print] Beheer PDOK 
* print operateson 000ms
04:59:36.436 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:35.583 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
910ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '58353cdf-b3a1-454e-9284-932a7e815e57' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 898ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58353cdf-b3a1-454e-9284-932a7e815e57' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:36.489 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/hy-p\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:36.490 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:36.491 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:36.492 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:36.493 [print] Beheer PDOK 
* print operateson 000ms
04:59:36.494 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"58353cdf-b3a1-454e-9284-932a7e815e57","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"58353cdf-b3a1-454e-9284-932a7e815e57","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:36.036 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '30f65c89-2246-49f8-8b50-0f1140d6f2aa' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '30f65c89-2246-49f8-8b50-0f1140d6f2aa' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:36.909 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/hy-p\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:36.910 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:36.911 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:36.911 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:36.912 [print] Beheer PDOK 
* print operateson 000ms
04:59:36.912 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"30f65c89-2246-49f8-8b50-0f1140d6f2aa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"30f65c89-2246-49f8-8b50-0f1140d6f2aa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:36.370 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
909ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '82541a1f-2e4e-459f-ab2f-e97cac3ad040' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 886ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82541a1f-2e4e-459f-ab2f-e97cac3ad040' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:37.272 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:37.274 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:37.276 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:37.277 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:37.278 [print] Beheer PDOK 
* print operateson 000ms
04:59:37.278 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:36.443 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
921ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 890ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 002ms
* def title = get response //citation/CI_Citation/title/CharacterString 002ms
* def email = get response //electronicMailAddress/CharacterString 002ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 002ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 002ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:37.356 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:37.358 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:37.360 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:37.360 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 002ms
* print organisationpath 000ms
04:59:37.363 [print] Beheer PDOK 
* print operateson 000ms
04:59:37.363 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 002ms
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:36.498 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
904ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9c5351c8-d8f4-41c2-9642-42a63496a6fe' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 884ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c5351c8-d8f4-41c2-9642-42a63496a6fe' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 001ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:37.398 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:37.399 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
04:59:37.401 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:37.401 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:37.403 [print] Beheer PDOK 
* print operateson 000ms
04:59:37.403 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:36.915 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
880ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 866ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:37.792 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:37.793 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:37.794 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:37.794 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:37.795 [print] Beheer PDOK 
* print operateson 000ms
04:59:37.795 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:37.283 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
885ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 019ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:38.166 [print] https:\/\/geodata.nationaalgeoregister.nl\/rvo\/invasieve-exoten\/wms\/v1_0?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:38.167 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:38.167 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:38.168 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:38.168 [print] Beheer PDOK 
* print operateson 000ms
04:59:38.169 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:37.369 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
871ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:38.239 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwateractueel\/wms\/v1_0?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:38.240 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:38.241 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:38.242 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:38.243 [print] Beheer PDOK 
* print operateson 000ms
04:59:38.243 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:37.408 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 001ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:38.267 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwater2015\/wms\/v1_0?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:38.268 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:38.269 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:38.269 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:38.270 [print] Beheer PDOK 
* print operateson 000ms
04:59:38.271 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:37.799 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4041f923-6b77-4816-bf46-437e85416c31' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:38.656 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnmarienestrategie2018\/wms\/v1_0?SERVICE=WMS&REQUEST=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:38.657 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:38.658 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:38.658 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:38.659 [print] Beheer PDOK 
* print operateson 000ms
04:59:38.660 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:38.173 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7e450110-f643-4b73-9262-4f13966cffc6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7e450110-f643-4b73-9262-4f13966cffc6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 002ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.042 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwater2009\/wms\/v1_0?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.043 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:39.044 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.045 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.046 [print] Beheer PDOK 
* print operateson 000ms
04:59:39.047 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw2006-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw2006-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7e450110-f643-4b73-9262-4f13966cffc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7e450110-f643-4b73-9262-4f13966cffc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:38.248 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.112 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.113 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:39.114 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.114 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.115 [print] Beheer PDOK 
* print operateson 000ms
04:59:39.115 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:38.275 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.144 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.145 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 001ms
04:59:39.147 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.147 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.148 [print] Beheer PDOK 
* print operateson 000ms
04:59:39.148 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:38.664 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.527 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbwegen\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.527 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:39.528 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.528 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.528 [print] Beheer PDOK 
* print operateson 000ms
04:59:39.529 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.051 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '598c4109-21d2-4a6c-b083-9975a6736849' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.913 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbvaarwegen\/wms?request=getCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.914 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:39.915 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.916 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.916 [print] Beheer PDOK 
* print operateson 000ms
04:59:39.917 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.119 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
875ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 003ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:39.992 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:39.993 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:39.993 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:39.993 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:39.994 [print] Rijkswaterstaat 
* print operateson 000ms
04:59:39.994 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=adn73c4a-ef03-4785-b7f6-942e86b385f5#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 001ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.152 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'aaf53e6f-fe99-4a86-a61c-50b128412d80' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aaf53e6f-fe99-4a86-a61c-50b128412d80' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:40.011 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:40.011 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:40.012 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:40.012 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:40.012 [print] Beheer PDOK 
* print operateson 000ms
04:59:40.012 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.533 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
889ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0bc2bcb8-558b-446b-b4e2-381b13d483a8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bc2bcb8-558b-446b-b4e2-381b13d483a8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 018ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:40.419 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:40.420 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:40.421 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:40.421 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:40.422 [print] Beheer PDOK 
* print operateson 000ms
04:59:40.422 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.921 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
909ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 900ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:40.827 [print] https://www.gdngeoservices.nl/inspire/wms/oppervlaktegeologie?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:40.828 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:40.829 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:40.829 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:40.830 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:40.831 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:39.999 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
954ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 944ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:40.949 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:40.950 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:40.951 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:40.952 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:40.953 [print] Beheer PDOK 
* print operateson 000ms
04:59:40.953 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:40.020 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 002ms
Tags: @step1
958ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 948ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:40.978 [print] https://geodata.nationaalgeoregister.nl/mosselzaadinvanginstallaties/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:40.979 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:40.980 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:40.980 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:40.981 [print] Beheer PDOK 
* print operateson 000ms
04:59:40.982 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
003ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:40.426 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 002ms
Tags: @step1
853ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 844ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:41.280 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wms?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:41.281 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:41.281 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:41.281 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:41.282 [print] Beheer PDOK 
* print operateson 000ms
04:59:41.282 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:40.835 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
868ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:41.702 [print] https:\/\/geodata.nationaalgeoregister.nl\/rdinfo\/wms?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:41.703 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:41.703 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:41.703 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:41.704 [print] Beheer PDOK 
* print operateson 000ms
04:59:41.704 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:40.958 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:41.818 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:41.819 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:41.820 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:41.820 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:41.821 [print] Beheer PDOK 
* print operateson 000ms
04:59:41.821 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:40.986 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:41.850 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:41.850 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:41.851 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:41.851 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:41.852 [print] Beheer PDOK 
* print operateson 000ms
04:59:41.852 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:41.286 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:42.155 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:42.156 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:42.157 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:42.157 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:42.158 [print] Beheer PDOK 
* print operateson 000ms
04:59:42.159 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:41.707 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1c9b43c3-064d-40c3-aa7c-879b7376ef6f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c9b43c3-064d-40c3-aa7c-879b7376ef6f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:42.565 [print] https:\/\/geodata.nationaalgeoregister.nl\/wko\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:42.566 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:42.566 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:42.566 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:42.567 [print] Beheer PDOK 
* print operateson 000ms
04:59:42.567 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc5b522e-3e14-4738-9e8e-2401e1b19ef2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1c9b43c3-064d-40c3-aa7c-879b7376ef6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1c9b43c3-064d-40c3-aa7c-879b7376ef6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:41.825 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 843ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc' 012ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:42.687 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:42.687 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:42.688 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:42.688 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:42.689 [print] Beheer PDOK 
* print operateson 000ms
04:59:42.689 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:41.856 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:42.713 [print] https://geodata.nationaalgeoregister.nl/overheidsdiensten/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:42.714 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:42.714 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:42.715 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:42.715 [print] Beheer PDOK 
* print operateson 000ms
04:59:42.715 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:42.163 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:43.019 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 004ms
* print protocol1 000ms
04:59:43.025 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:43.026 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:43.026 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:43.027 [print] Beheer PDOK 
* print operateson 000ms
04:59:43.028 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:42.571 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '62c0d0a5-5826-406d-a625-d84bc5fec800' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62c0d0a5-5826-406d-a625-d84bc5fec800' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:43.427 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:43.428 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:43.429 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:43.429 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 001ms
04:59:43.430 [print] Beheer PDOK 
* print operateson 000ms
04:59:43.432 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:42.692 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
855ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5856173c-e58d-4b4c-8f9b-046ee1f20c1c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5856173c-e58d-4b4c-8f9b-046ee1f20c1c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:43.545 [print] https:\/\/geodata.nationaalgeoregister.nl\/wko\/wfs?service=WFS&request=Getcapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:43.546 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:43.547 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:43.547 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:43.548 [print] Beheer PDOK 
* print operateson 000ms
04:59:43.548 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc5b522e-3e14-4738-9e8e-2401e1b19ef2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5856173c-e58d-4b4c-8f9b-046ee1f20c1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5856173c-e58d-4b4c-8f9b-046ee1f20c1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:42.718 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '32b1eb9e-c54f-4598-92d2-328eb77fa0d3' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32b1eb9e-c54f-4598-92d2-328eb77fa0d3' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:43.581 [print] https://geodata.nationaalgeoregister.nl/natura2000/wfs?service=WFS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:43.582 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:43.582 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:43.583 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:43.583 [print] Beheer PDOK 
* print operateson 000ms
04:59:43.583 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"32b1eb9e-c54f-4598-92d2-328eb77fa0d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"32b1eb9e-c54f-4598-92d2-328eb77fa0d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:43.033 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:43.903 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wfs\/v2_0?service=WFS&request=getcapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:43.904 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:43.904 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:43.905 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:43.905 [print] Beheer PDOK 
* print operateson 000ms
04:59:43.905 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:43.436 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
890ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 880ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:44.324 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wms\/v2_0?service=WMS&request=getcapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:44.325 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:44.326 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:44.326 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:44.327 [print] Beheer PDOK 
* print operateson 000ms
04:59:44.328 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:43.551 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 848ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:44.406 [print] https:\/\/geodata.nationaalgeoregister.nl\/rdinfo\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:44.407 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:44.407 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:44.408 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:44.408 [print] Beheer PDOK 
* print operateson 000ms
04:59:44.408 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:43.587 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
876ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:44.454 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:44.454 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:44.456 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 006ms
04:59:44.462 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:44.463 [print] Beheer PDOK 
* print operateson 000ms
04:59:44.464 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=rorl-9d8e-4758-83fx-28b057f185g1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:43.909 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
887ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 878ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:44.810 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:44.811 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:44.811 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:44.812 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:44.812 [print] Beheer PDOK 
* print operateson 000ms
04:59:44.813 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:44.331 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
874ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e75b66ae-21b1-4303-aeb3-787608707b23' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e75b66ae-21b1-4303-aeb3-787608707b23' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:45.203 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wfs?request=GetCapabilitiesservice=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:45.204 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:45.205 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:45.205 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:45.206 [print] Beheer PDOK 
* print operateson 000ms
04:59:45.206 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:44.412 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '280cee65-1b66-4973-a569-75122e0b745b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280cee65-1b66-4973-a569-75122e0b745b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:45.271 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wfs\/v1_0?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:45.271 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:45.272 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:45.272 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:45.273 [print] Beheer PDOK 
* print operateson 000ms
04:59:45.273 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:44.467 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
855ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 839ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:45.313 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wms\/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:45.315 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:45.316 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 005ms
04:59:45.321 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:45.322 [print] Beheer PDOK 
* print operateson 000ms
04:59:45.323 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:44.818 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:45.681 [print] https://geodata.nationaalgeoregister.nl/vin/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:45.682 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:45.683 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:45.683 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:45.684 [print] Beheer PDOK 
* print operateson 000ms
04:59:45.685 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:45.210 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c0a8e0ee-8639-44d4-be07-d7edf9c276c7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c0a8e0ee-8639-44d4-be07-d7edf9c276c7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:46.078 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:46.079 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:46.079 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:46.080 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:46.081 [print] Beheer PDOK 
* print operateson 000ms
04:59:46.082 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=14657c9b-91e4-4355-8563-2911ad0e78e4#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c0a8e0ee-8639-44d4-be07-d7edf9c276c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c0a8e0ee-8639-44d4-be07-d7edf9c276c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:45.278 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 001ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5bb85b77-fffd-449b-bd61-f076fe07cc4b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5bb85b77-fffd-449b-bd61-f076fe07cc4b' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:46.137 [print] https://geodata.nationaalgeoregister.nl/inspire/tn-c/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:46.138 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:46.138 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:46.139 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:46.139 [print] Beheer PDOK 
* print operateson 000ms
04:59:46.139 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"5bb85b77-fffd-449b-bd61-f076fe07cc4b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5bb85b77-fffd-449b-bd61-f076fe07cc4b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:45.327 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '09588464-071b-47be-8cbe-d15f2e1f9634' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '09588464-071b-47be-8cbe-d15f2e1f9634' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:46.191 [print] https://geodata.nationaalgeoregister.nl/inspire/tn-c/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:46.192 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:46.192 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:46.192 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:46.193 [print] Beheer PDOK 
* print operateson 000ms
04:59:46.193 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"09588464-071b-47be-8cbe-d15f2e1f9634","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"09588464-071b-47be-8cbe-d15f2e1f9634","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:45.688 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
878ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 868ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:46.563 [print] https://inspire.caris.nl/geoserver/auwms/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:46.564 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:46.565 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:46.565 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:46.566 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:46.567 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:46.085 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
928ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 919ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:47.010 [print] https://geodata.nationaalgeoregister.nl/vin/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:47.012 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:47.012 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:47.013 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:47.014 [print] Beheer PDOK 
* print operateson 000ms
04:59:47.014 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:46.143 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
924ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c374d556-7b6e-459b-83c7-74da6ad90a59' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 916ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c374d556-7b6e-459b-83c7-74da6ad90a59' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:47.066 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:47.067 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:47.067 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:47.068 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:47.069 [print] Beheer PDOK 
* print operateson 000ms
04:59:47.069 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:46.196 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
907ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '018a28a5-1019-4747-b031-f66ffc1c6ae7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 897ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '018a28a5-1019-4747-b031-f66ffc1c6ae7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:47.100 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:47.101 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:47.102 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:47.103 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:47.104 [print] Beheer PDOK 
* print operateson 000ms
04:59:47.104 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:46.570 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
1s 008ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e69bb2e9-eff4-4fb3-86a6-057cf628e761' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 930ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e69bb2e9-eff4-4fb3-86a6-057cf628e761' 006ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 006ms
* def title = get response //citation/CI_Citation/title/CharacterString 006ms
* def email = get response //electronicMailAddress/CharacterString 006ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 006ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 006ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 004ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 004ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 004ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:47.557 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 004ms
* print protocol1 000ms
04:59:47.561 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 004ms
* print protocol2 000ms
04:59:47.567 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:47.567 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 006ms
* print organisationpath 000ms
04:59:47.573 [print] Beheer PDOK 
* print operateson 000ms
04:59:47.574 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 006ms
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:47.035 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '4fb15e0d-d88f-40f1-b407-3d3edcf7e184' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4fb15e0d-d88f-40f1-b407-3d3edcf7e184' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:47.905 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:47.906 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:47.907 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:47.907 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:47.908 [print] Beheer PDOK 
* print operateson 001ms
04:59:47.909 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:47.072 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
1s 043ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '76854ff3-a853-4405-b9fd-acef66460376' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 946ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76854ff3-a853-4405-b9fd-acef66460376' 003ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 006ms
* def title = get response //citation/CI_Citation/title/CharacterString 005ms
* def email = get response //electronicMailAddress/CharacterString 010ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 006ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 005ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 003ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 003ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 004ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:48.072 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 003ms
* print protocol1 022ms
04:59:48.098 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 005ms
* print protocol2 000ms
04:59:48.103 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 001ms
04:59:48.105 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 005ms
* print organisationpath 000ms
04:59:48.111 [print] Beheer PDOK 
* print operateson 000ms
04:59:48.111 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 005ms
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:47.108 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
1s 035ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '37e05521-c323-4dbe-aba4-de1178ba44a5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 944ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37e05521-c323-4dbe-aba4-de1178ba44a5' 003ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 006ms
* def title = get response //citation/CI_Citation/title/CharacterString 008ms
* def email = get response //electronicMailAddress/CharacterString 028ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 006ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 006ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 003ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 003ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 004ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:48.125 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 003ms
* print protocol1 000ms
04:59:48.129 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 004ms
* print protocol2 000ms
04:59:48.133 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:48.134 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 005ms
* print organisationpath 000ms
04:59:48.139 [print] Beheer PDOK 
* print operateson 000ms
04:59:48.139 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 005ms
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:47.584 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:48.454 [print] https://inspire.caris.nl/geoserver/auwms/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:48.454 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:48.455 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:48.455 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:48.455 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:48.456 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:47.913 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
981ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '8e7686c3-f75e-411f-866e-6985267b916b' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 926ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8e7686c3-f75e-411f-866e-6985267b916b' 003ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 004ms
* def title = get response //citation/CI_Citation/title/CharacterString 004ms
* def email = get response //electronicMailAddress/CharacterString 004ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 004ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 004ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 002ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 004ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 004ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:48.881 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 002ms
* print protocol1 000ms
04:59:48.884 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 003ms
* print protocol2 000ms
04:59:48.887 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:48.887 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 004ms
* print organisationpath 000ms
04:59:48.892 [print] Beheer PDOK 
* print operateson 000ms
04:59:48.892 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 004ms
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:48.120 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
928ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '86cb5bcc-a199-43e2-9e03-2d0fe8bdfa3f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 896ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '86cb5bcc-a199-43e2-9e03-2d0fe8bdfa3f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:49.025 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-ra\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.026 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.027 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.028 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
04:59:49.029 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.029 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 020ms
* eval db.writeln('"86cb5bcc-a199-43e2-9e03-2d0fe8bdfa3f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"86cb5bcc-a199-43e2-9e03-2d0fe8bdfa3f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:48.148 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
912ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3d759186-7cee-4218-aa44-165f3922fbbb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 903ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d759186-7cee-4218-aa44-165f3922fbbb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 000ms
04:59:49.058 [print] https://geodata.nationaalgeoregister.nl/inspire/tn-w/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.058 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.059 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.060 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:49.061 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.061 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3d759186-7cee-4218-aa44-165f3922fbbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3d759186-7cee-4218-aa44-165f3922fbbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:48.459 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ec73f245-66ce-4144-ac27-5966c80a4b3a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ec73f245-66ce-4144-ac27-5966c80a4b3a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:49.323 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-w\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.324 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.325 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.325 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:49.326 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.326 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ec73f245-66ce-4144-ac27-5966c80a4b3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ec73f245-66ce-4144-ac27-5966c80a4b3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:48.899 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
847ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '555f668f-63b4-47ef-a666-f12d71c2cc4a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 839ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '555f668f-63b4-47ef-a666-f12d71c2cc4a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:49.744 [print] https://service.pdok.nl/cbs/wb2018/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.745 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.746 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.746 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:49.747 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.747 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"555f668f-63b4-47ef-a666-f12d71c2cc4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"555f668f-63b4-47ef-a666-f12d71c2cc4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.056 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
902ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 892ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:49.956 [print] http:\/\/geodata.nationaalgeoregister.nl\/wsdiensteninspire\/wms?request=getcapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.958 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.958 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.959 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:49.960 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.961 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.064 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '97a7d966-7261-49d4-bc08-c4900981f092' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97a7d966-7261-49d4-bc08-c4900981f092' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:49.925 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-a\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:49.926 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:49.926 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:49.927 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:49.927 [print] Beheer PDOK 
* print operateson 000ms
04:59:49.927 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"97a7d966-7261-49d4-bc08-c4900981f092","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"97a7d966-7261-49d4-bc08-c4900981f092","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.330 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd69fee4a-e3ff-47d4-919d-e55276a3fad9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd69fee4a-e3ff-47d4-919d-e55276a3fad9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:50.194 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-a\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:50.195 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:50.195 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:50.195 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:50.196 [print] Beheer PDOK 
* print operateson 000ms
04:59:50.196 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d69fee4a-e3ff-47d4-919d-e55276a3fad9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d69fee4a-e3ff-47d4-919d-e55276a3fad9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.750 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
891ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '65f9628b-0a58-4348-8fff-c2d02788acdb' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 871ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '65f9628b-0a58-4348-8fff-c2d02788acdb' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 012ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:50.641 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-ra\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:50.641 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:50.642 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:50.642 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:50.643 [print] Beheer PDOK 
* print operateson 000ms
04:59:50.643 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"65f9628b-0a58-4348-8fff-c2d02788acdb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"65f9628b-0a58-4348-8fff-c2d02788acdb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.931 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '627b50bf-2e33-4beb-a314-ff8c0fe8912e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 864ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '627b50bf-2e33-4beb-a314-ff8c0fe8912e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:50.801 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:50.803 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:50.803 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:50.804 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:50.804 [print] Beheer PDOK 
* print operateson 000ms
04:59:50.804 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:49.964 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a84f9836-9111-4e45-a311-3dab39019e15' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a84f9836-9111-4e45-a311-3dab39019e15' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:50.823 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 002ms
* print protocol1 000ms
04:59:50.826 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:50.827 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:50.827 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:50.828 [print] Beheer PDOK 
* print operateson 000ms
04:59:50.829 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:50.200 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ce4ac3b9-8291-498d-95de-79fe7b6f5259' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce4ac3b9-8291-498d-95de-79fe7b6f5259' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:51.062 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-ro\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:51.063 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:51.063 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:51.064 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:51.064 [print] Beheer PDOK 
* print operateson 000ms
04:59:51.065 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"ce4ac3b9-8291-498d-95de-79fe7b6f5259","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ce4ac3b9-8291-498d-95de-79fe7b6f5259","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:50.646 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '18bcfb8c-b73d-4e9c-8348-7ee6cd49ec79' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '18bcfb8c-b73d-4e9c-8348-7ee6cd49ec79' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:51.503 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/tn-ro\/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:51.504 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:51.505 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:51.506 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:51.507 [print] Beheer PDOK 
* print operateson 009ms
04:59:51.516 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"18bcfb8c-b73d-4e9c-8348-7ee6cd49ec79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"18bcfb8c-b73d-4e9c-8348-7ee6cd49ec79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:50.808 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
888ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '598c4109-21d2-4a6c-b083-9975a6736853' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 877ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:51.693 [print] https:\/\/geodata.nationaalgeoregister.nl\/weggeg\/wms?request=getcapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:51.694 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:51.694 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:51.695 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:51.696 [print] Beheer PDOK 
* print operateson 000ms
04:59:51.696 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=27df6b33-194c-46d6-ac94-257c306c91f2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:50.833 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
885ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '684ff4f6-1652-45a8-93f0-8e16d37b2a66' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 875ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684ff4f6-1652-45a8-93f0-8e16d37b2a66' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:51.715 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/wms/v1_0?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:51.716 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:51.717 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:51.718 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:51.718 [print] Beheer PDOK 
* print operateson 000ms
04:59:51.719 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:51.070 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 007ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:51.943 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:51.944 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:51.945 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:51.945 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:51.946 [print] Beheer PDOK 
* print operateson 000ms
04:59:51.947 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:51.521 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:52.380 [print] https://geodata.nationaalgeoregister.nl/windkaart/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:52.380 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:52.381 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:52.382 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:52.383 [print] Beheer PDOK 
* print operateson 000ms
04:59:52.383 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:51.703 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 865ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:52.575 [print] https://geodata.nationaalgeoregister.nl/windkaart/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:52.575 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:52.576 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:52.576 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:52.576 [print] Beheer PDOK 
* print operateson 000ms
04:59:52.576 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:51.723 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
883ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '88a93a3b-d522-4c5d-9b0f-c6c39a118442' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 876ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a93a3b-d522-4c5d-9b0f-c6c39a118442' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:52.605 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wms?&request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:52.606 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:52.606 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:52.606 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:52.607 [print] Beheer PDOK 
* print operateson 000ms
04:59:52.607 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:51.951 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '93c8762c-4cbb-42b0-9b02-89ef902e8880' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93c8762c-4cbb-42b0-9b02-89ef902e8880' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:52.810 [print] https://service.pdok.nl/provincies/ps/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:52.810 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:52.811 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:52.811 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:52.811 [print] Beheer PDOK 
* print operateson 000ms
04:59:52.811 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:52.387 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
857ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:53.243 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:53.244 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:53.244 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:53.245 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:53.245 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:53.245 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:52.580 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
896ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 870ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 010ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 006ms
04:59:53.473 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:53.474 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:53.474 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:53.475 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:53.476 [print] Beheer PDOK 
* print operateson 000ms
04:59:53.476 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:52.610 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 007ms
04:59:53.480 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:53.481 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:53.482 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:53.482 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:53.483 [print] RIVM 
* print operateson 000ms
04:59:53.484 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:52.815 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f76bdce5-344e-415f-8f2c-972755e80b65' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f76bdce5-344e-415f-8f2c-972755e80b65' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:53.668 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:53.669 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:53.670 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:53.670 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:53.671 [print] Beheer PDOK 
* print operateson 000ms
04:59:53.671 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:53.249 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:54.117 [print] https://service.pdok.nl/cbs/wb2020/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:54.117 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:54.118 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:54.118 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:54.118 [print] Beheer PDOK 
* print operateson 000ms
04:59:54.119 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:53.488 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:54.350 [print] https://geodata.nationaalgeoregister.nl/rvo/invasieve-exoten/wfs/v1_0?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:54.351 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:54.351 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:54.352 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:54.353 [print] Beheer PDOK 
* print operateson 000ms
04:59:54.353 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3703b249-a0eb-484e-ba7a-10e31a55bcec&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
004ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:53.487 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 003ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
886ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 877ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:54.374 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:54.374 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:54.375 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:54.376 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:54.376 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:54.377 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:53.674 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
900ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c47e4ef8-951e-4765-8d01-29150c12a22d' 006ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 883ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c47e4ef8-951e-4765-8d01-29150c12a22d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:54.570 [print] https://www.broinspireservices.nl/atom/services.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:54.571 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:54.571 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:54.572 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 003ms
04:59:54.576 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:54.576 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=7D35598D-DFBF-C64D-0F1A-92A80A45EB14&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c47e4ef8-951e-4765-8d01-29150c12a22d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c47e4ef8-951e-4765-8d01-29150c12a22d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:54.122 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 001ms
* print connectUrl 000ms
04:59:54.986 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/ows?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:54.987 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:54.987 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:54.988 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:54.988 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:54.988 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:54.357 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
877ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 870ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:55.234 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:55.234 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:55.235 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:55.235 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:55.235 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:55.235 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:54.380 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
881ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '5f0c583a-101e-45ea-b684-a056713cf811' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 872ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:55.259 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:55.260 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:55.261 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:55.261 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:55.262 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:55.263 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:54.579 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:55.442 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:55.443 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:55.443 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:55.444 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:55.445 [print] RIVM 
* print operateson 000ms
04:59:55.445 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:54.992 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'feabca04-e3fd-4802-96f2-583d328e30ad' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'feabca04-e3fd-4802-96f2-583d328e30ad' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:55.851 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2018/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
04:59:55.853 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:55.854 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:55.854 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:55.855 [print] Beheer PDOK 
* print operateson 000ms
04:59:55.856 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"feabca04-e3fd-4802-96f2-583d328e30ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"feabca04-e3fd-4802-96f2-583d328e30ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:55.239 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
895ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 888ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:56.132 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:56.133 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:56.133 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:56.134 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:56.134 [print] Beheer PDOK 
* print operateson 000ms
04:59:56.134 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:55.266 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
920ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 900ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 011ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:56.184 [print] https://inspire.rivm.nl/geoserver/wfs? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:56.185 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:56.185 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:56.186 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:56.186 [print] RIVM 
* print operateson 000ms
04:59:56.186 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:55.450 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
914ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a8ad0d7d-ea9e-4261-bc92-772e99a41387' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 907ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a8ad0d7d-ea9e-4261-bc92-772e99a41387' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:56.363 [print] https://geodata.nationaalgeoregister.nl/inspireadressen/v2/wfs?service=wfs&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:56.363 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:56.364 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:56.364 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:56.364 [print] Beheer PDOK 
* print operateson 000ms
04:59:56.364 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/eng/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a8ad0d7d-ea9e-4261-bc92-772e99a41387","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a8ad0d7d-ea9e-4261-bc92-772e99a41387","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:55.859 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c1fb5983-5642-4334-962a-a341cef8c8ff' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1fb5983-5642-4334-962a-a341cef8c8ff' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:56.723 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:56.723 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:56.724 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:56.724 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:56.725 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:56.725 [print] https://haleconnect.com/services/bsp/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c1fb5983-5642-4334-962a-a341cef8c8ff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c1fb5983-5642-4334-962a-a341cef8c8ff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:56.138 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.001 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/view_PF?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.002 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.003 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.004 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.004 [print] Interprovinciaal Overleg 
* print operateson 001ms
04:59:57.006 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:56.190 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3094a1c4-3dd6-4e8e-9929-4a63dd66992e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3094a1c4-3dd6-4e8e-9929-4a63dd66992e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.048 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/download_PF?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.049 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.049 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.050 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.051 [print] Interprovinciaal Overleg 
* print operateson 001ms
04:59:57.052 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:56.368 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.235 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wfs?request=GetCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.236 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.236 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.236 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.237 [print] Beheer PDOK 
* print operateson 000ms
04:59:57.237 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:56.728 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '488c1e6d-363e-4476-b2ff-17756ac9b35f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '488c1e6d-363e-4476-b2ff-17756ac9b35f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 008ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.600 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.601 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.601 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.601 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.602 [print] Beheer PDOK 
* print operateson 000ms
04:59:57.602 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.009 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.867 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.867 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.868 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.868 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.868 [print] Beheer PDOK 
* print operateson 000ms
04:59:57.869 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f52e76f-c96d-4df3-a778-279c2164372b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.055 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:57.916 [print] https://geodata.nationaalgeoregister.nl/natura2000/wms?service=WMS&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:57.916 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:57.917 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:57.917 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:57.917 [print] Beheer PDOK 
* print operateson 000ms
04:59:57.917 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.242 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c99b1291-c51f-49c8-902d-5bd4148cbbde' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 863ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c99b1291-c51f-49c8-902d-5bd4148cbbde' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:58.111 [print] http:\/\/services.inspire-provincies.nl\/HabitatsAndBiotopes\/services\/view_HB?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:58.111 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:58.112 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:58.112 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:58.113 [print] Interprovinciaal Overleg 
* print operateson 000ms
04:59:58.113 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.605 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
04:59:58.469 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:58.470 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:58.471 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:58.471 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:58.472 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
04:59:58.472 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.872 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
854ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '664862cb-d426-4ee4-97ac-14c12b903b54' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 844ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '664862cb-d426-4ee4-97ac-14c12b903b54' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 002ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:58.725 [print] https://www.broinspireservices.nl/wms/oshhgqm-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:58.726 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:58.726 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:58.726 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:58.727 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:58.727 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6050578f-0010-4bfa-b013-c8617b80ba62&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"664862cb-d426-4ee4-97ac-14c12b903b54","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"664862cb-d426-4ee4-97ac-14c12b903b54","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:57.921 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 011ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:58.786 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:58.788 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:58.788 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:58.789 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:58.790 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
04:59:58.790 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4cda487b-c467-490c-a843-6563fec016be#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:58.116 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '54d2021b-e778-4834-a3c6-75c89d36b942' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54d2021b-e778-4834-a3c6-75c89d36b942' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:58.971 [print] https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=GetCapabilities&service=wmts 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:58.972 [print] OGC:WMTS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:58.972 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:58.972 [print] OGC:WMTS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:58.973 [print] Beheer PDOK 
* print operateson 000ms
04:59:58.973 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2ae3e9b7-aa79-41d4-a35b-c9a0fee69e5c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"54d2021b-e778-4834-a3c6-75c89d36b942","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"54d2021b-e778-4834-a3c6-75c89d36b942","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:58.476 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '63f622ef-46b3-411a-a2aa-045cabf1e3ac' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63f622ef-46b3-411a-a2aa-045cabf1e3ac' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:59.343 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wfs/v1?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:59.344 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:59.344 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:59.345 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:59.345 [print] Beheer PDOK 
* print operateson 000ms
04:59:59.345 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 002ms
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:58.731 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
862ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '542b330b-d3c6-4617-b97f-693e5cfd1872' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '542b330b-d3c6-4617-b97f-693e5cfd1872' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:59.591 [print] https://www.broinspireservices.nl/wfs/osamepl-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:59.592 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:59.593 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:59.594 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:59.594 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
04:59:59.595 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:58.795 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:59.651 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:59.651 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:59.652 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:59.652 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:59.652 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
04:59:59.653 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:58.976 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
04:59:59.835 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
04:59:59.836 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
04:59:59.836 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
04:59:59.836 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
04:59:59.837 [print] Beheer PDOK 
* print operateson 000ms
04:59:59.837 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:59.352 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
893ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68505be5-45c4-4889-a82a-125043bbdc44' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 886ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68505be5-45c4-4889-a82a-125043bbdc44' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:00.244 [print] https://www.broinspireservices.nl/wfs/osgebor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:00.244 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:00.245 [print] OGC:WFS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:00.245 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:00.246 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
05:00:00.246 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6c1cf452-8c62-4046-99ab-640a5e184f9c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68505be5-45c4-4889-a82a-125043bbdc44","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68505be5-45c4-4889-a82a-125043bbdc44","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:59.601 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
884ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1a8d5470-8c5e-477a-ab6b-4893b6d21ab6' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 876ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1a8d5470-8c5e-477a-ab6b-4893b6d21ab6' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:00.484 [print] https://www.broinspireservices.nl/wms/osgebor-a-v1.0?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:00.484 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:00.485 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:00.486 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:00.486 [print] TNO Geologische Dienst Nederland 
* print operateson 000ms
05:00:00.487 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6c1cf452-8c62-4046-99ab-640a5e184f9c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1a8d5470-8c5e-477a-ab6b-4893b6d21ab6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1a8d5470-8c5e-477a-ab6b-4893b6d21ab6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:59.657 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
914ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 905ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:00.569 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:00.569 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:00.570 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:00.570 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:00.571 [print] KNMI 
* print operateson 000ms
05:00:00.572 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
04:59:59.840 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
890ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b81f9ce3-f612-4761-ba37-4c8afda9033a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 882ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b81f9ce3-f612-4761-ba37-4c8afda9033a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:00.728 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:00.729 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:00.730 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:00.730 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:00.731 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:00.731 [print] https://haleconnect.com/services/bsp/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b81f9ce3-f612-4761-ba37-4c8afda9033a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b81f9ce3-f612-4761-ba37-4c8afda9033a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:00.249 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:01.115 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:01.115 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:01.116 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:01.116 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:01.117 [print] Rijksinstituut voor Volksgezondheid en Milieu 
* print operateson 000ms
05:00:01.117 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:00.491 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
884ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 867ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:01.364 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:01.365 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:01.366 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:01.366 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:01.367 [print] Beheer PDOK 
* print operateson 000ms
05:00:01.368 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 008ms
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:00.575 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
897ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 876ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 001ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:01.465 [print] https:\/\/geodata.nationaalgeoregister.nl\/plu\/wms?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
05:00:01.467 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
05:00:01.468 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:01.469 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
05:00:01.471 [print] Beheer PDOK 
* print operateson 000ms
05:00:01.472 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
002ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:00.734 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 001ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
957ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 947ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:01.690 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:01.690 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 002ms
* print protocol2 000ms
05:00:01.692 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:01.692 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:01.693 [print] Beheer PDOK 
* print operateson 000ms
05:00:01.693 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:01.120 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
884ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 876ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:02.003 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:02.003 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:02.004 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:02.004 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:02.005 [print] Beheer PDOK 
* print operateson 000ms
05:00:02.005 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:01.380 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
904ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 896ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:02.282 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wms/?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:02.283 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
05:00:02.284 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:02.285 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:02.286 [print] Beheer PDOK 
* print operateson 000ms
05:00:02.286 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:01.476 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
903ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 895ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:02.378 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v1_0?request=GetCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:02.378 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:02.379 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:02.379 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:02.380 [print] Beheer PDOK 
* print operateson 000ms
05:00:02.381 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f52e76f-c96d-4df3-a778-279c2164372b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:01.696 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
896ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 888ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:02.590 [print] https://inspire.caris.nl/geoserver/gnwms/wms?request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:02.591 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:02.592 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:02.592 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:02.592 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
05:00:02.593 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:02.009 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '972edbaa-f860-4c48-b449-4f238a263472' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 865ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:02.880 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:02.881 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:02.882 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:02.882 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:02.883 [print] Beheer PDOK 
* print operateson 000ms
05:00:02.883 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:02.289 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:03.152 [print] https://geodata.nationaalgeoregister.nl/mosselzaadinvanginstallaties/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:03.153 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:03.153 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:03.153 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:03.154 [print] Beheer PDOK 
* print operateson 000ms
05:00:03.154 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:02.384 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
866ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '3d8c9463-a3da-401d-8251-8c6664865e0c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 859ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d8c9463-a3da-401d-8251-8c6664865e0c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:03.249 [print] https://haleconnect.com/ows/services/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:03.250 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:03.251 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:03.251 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:03.251 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:03.251 [print] https://haleconnect.com/services/bsp/org.292.504afbe6-0069-411b-b69b-2aae3728f735/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"3d8c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"3d8c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:02.596 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
897ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7d641d0e-c04b-4191-833e-c578ac2abe5f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 889ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d641d0e-c04b-4191-833e-c578ac2abe5f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:03.492 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.83f948b1-9293-4926-b64d-40857c792f1e?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:03.493 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:03.493 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:03.493 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:03.494 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:03.495 [print] https://haleconnect.com/services/bsp/org.874.83f948b1-9293-4926-b64d-40857c792f1e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7d641d0e-c04b-4191-833e-c578ac2abe5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7d641d0e-c04b-4191-833e-c578ac2abe5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:02.886 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
860ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ac3ee940-4f98-427c-a2d9-58696005d9c2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac3ee940-4f98-427c-a2d9-58696005d9c2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:03.746 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:03.746 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:03.747 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:03.747 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:03.747 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:03.748 [print] https://haleconnect.com/services/bsp/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ac3ee940-4f98-427c-a2d9-58696005d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ac3ee940-4f98-427c-a2d9-58696005d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:03.157 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
878ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 870ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.033 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.034 [print] OGC:CSW 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.035 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.035 [print] OGC:CSW 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.036 [print] Beheer PDOK 
* print operateson 000ms
05:00:04.036 [print] #notpresent 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:03.255 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'ac3a9efe-2154-4a4c-aae3-ea269044945d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac3a9efe-2154-4a4c-aae3-ea269044945d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.117 [print] https://geodata.nationaalgeoregister.nl/bzk/bro-bodemkaart/wms/v1_0?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.118 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.119 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.119 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.120 [print] Beheer PDOK 
* print operateson 000ms
05:00:04.120 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"ac3a9efe-2154-4a4c-aae3-ea269044945d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"ac3a9efe-2154-4a4c-aae3-ea269044945d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:03.498 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
894ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '257b960c-ece6-4e0f-b893-77b219c6133f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 885ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '257b960c-ece6-4e0f-b893-77b219c6133f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.389 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.390 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.391 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.391 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.392 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:04.393 [print] https://haleconnect.com/services/bsp/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"257b960c-ece6-4e0f-b893-77b219c6133f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"257b960c-ece6-4e0f-b893-77b219c6133f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:03.751 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
906ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 889ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.646 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.647 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.647 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.647 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.648 [print] KNMI 
* print operateson 000ms
05:00:04.648 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 009ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.039 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
879ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 871ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.917 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.917 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.918 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.918 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.918 [print] KNMI 
* print operateson 000ms
05:00:04.919 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.123 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '7d533012-21ad-4a5b-a97e-a76988270273' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 857ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:04.987 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:04.987 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:04.988 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:04.988 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:04.988 [print] KNMI 
* print operateson 000ms
05:00:04.988 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.396 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
863ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '35546103-58eb-4f61-a858-a6fbc5a7e814' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '35546103-58eb-4f61-a858-a6fbc5a7e814' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:05.259 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:05.259 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:05.260 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:05.260 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:05.260 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:05.261 [print] https://haleconnect.com/services/bsp/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"35546103-58eb-4f61-a858-a6fbc5a7e814","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"35546103-58eb-4f61-a858-a6fbc5a7e814","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.661 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '0898d4a9-8fe6-46e9-8855-1242d8028970' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 852ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0898d4a9-8fe6-46e9-8855-1242d8028970' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
05:00:05.522 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:05.523 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:05.523 [print] INSPIRE Atom 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:05.524 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 001ms
05:00:05.525 [print] Beheer PDOK 
* print operateson 000ms
05:00:05.526 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185f1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.922 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
892ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 868ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 009ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:05.807 [print] https:\/\/geodata.nationaalgeoregister.nl\/bag\/wfs\/v1_1?request=getCapabilities&service=WFS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:05.808 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:05.809 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:05.810 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:05.811 [print] Beheer PDOK 
* print operateson 000ms
05:00:05.811 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 003ms
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:04.992 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:05.855 [print] https:\/\/geodata.nationaalgeoregister.nl\/bag\/wms\/v1_1?request=getCapabilities&service=WMS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:05.855 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:05.856 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:05.856 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:05.857 [print] Beheer PDOK 
* print operateson 000ms
05:00:05.857 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:05.264 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '97312a37-4ebf-4526-94e6-b29e90c2944a' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97312a37-4ebf-4526-94e6-b29e90c2944a' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
05:00:06.132 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:06.133 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:06.134 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:06.134 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:06.135 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:06.136 [print] https://haleconnect.com/services/bsp/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"97312a37-4ebf-4526-94e6-b29e90c2944a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"97312a37-4ebf-4526-94e6-b29e90c2944a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:05.530 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '56093b94-7517-456d-a0d4-338aba3d8c74' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56093b94-7517-456d-a0d4-338aba3d8c74' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:06.385 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:06.386 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:06.386 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:06.387 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:06.387 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:06.387 [print] https://haleconnect.com/services/bsp/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"56093b94-7517-456d-a0d4-338aba3d8c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"56093b94-7517-456d-a0d4-338aba3d8c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:05.818 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
854ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '92826f1e-040d-4099-b9e1-cab6bfc520af' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 848ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '92826f1e-040d-4099-b9e1-cab6bfc520af' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:06.671 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:06.672 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:06.673 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:06.673 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:06.673 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:06.673 [print] https://haleconnect.com/services/bsp/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"92826f1e-040d-4099-b9e1-cab6bfc520af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"92826f1e-040d-4099-b9e1-cab6bfc520af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:05.860 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'f20e948e-9e22-4b5a-96a1-f3cc1d16b808' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 841ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f20e948e-9e22-4b5a-96a1-f3cc1d16b808' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 007ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:06.714 [print] https://geodata.nationaalgeoregister.nl/ahn1/wcs?request=GetCapabilities&service=wcs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:06.715 [print] OGC:WCS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:06.715 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:06.715 [print] OGC:WCS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:06.716 [print] Beheer PDOK 
* print operateson 000ms
05:00:06.716 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5a1adb58-0bbe-425d-b0fe-577a6c0a4228#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"f20e948e-9e22-4b5a-96a1-f3cc1d16b808","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"f20e948e-9e22-4b5a-96a1-f3cc1d16b808","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:06.141 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
896ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b4b59b2c-156d-412e-b8f0-c0779402de80' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 887ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4b59b2c-156d-412e-b8f0-c0779402de80' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 001ms
05:00:07.035 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:07.036 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:07.037 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:07.037 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:07.038 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:07.038 [print] https://haleconnect.com/services/bsp/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b4b59b2c-156d-412e-b8f0-c0779402de80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b4b59b2c-156d-412e-b8f0-c0779402de80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:06.390 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
955ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '49a53bc1-dd76-417f-b9af-066901ddfec0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 948ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49a53bc1-dd76-417f-b9af-066901ddfec0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:07.344 [print] https://inspire.caris.nl/server/services/ows/download/feature/amplitude-getij_IDS?request=GetCapabilities&service=WFS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:07.345 [print] OGC:WCS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:07.345 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:07.345 [print] OGC:WCS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:07.346 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
05:00:07.346 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"49a53bc1-dd76-417f-b9af-066901ddfec0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"49a53bc1-dd76-417f-b9af-066901ddfec0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:06.676 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:07.534 [print] https://inspire.rivm.nl/geoserver/airq/wms? 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:07.534 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:07.535 [print] OGC:WMS 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:07.535 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:07.536 [print] RIVM 
* print operateson 000ms
05:00:07.536 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:06.719 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:07.574 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:07.574 [print] OGC:WCS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:07.575 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:07.575 [print] OGC:WCS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:07.576 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
05:00:07.576 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 008ms
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:07.041 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
879ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 873ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:07.920 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wfs?request=GetCapabilities&service=wfs 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:07.920 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:07.921 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:07.921 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:07.921 [print] Beheer PDOK 
* print operateson 000ms
05:00:07.921 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:07.350 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
920ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '94e5b115-bece-4140-99ed-93b8f363948e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 911ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:08.268 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:08.269 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:08.270 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:08.270 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:08.271 [print] Beheer PDOK 
* print operateson 000ms
05:00:08.271 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:07.539 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
849ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'fff9d7cf-9929-4dde-98b8-06ceda7e5610' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 840ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fff9d7cf-9929-4dde-98b8-06ceda7e5610' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:08.387 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn2\/wcs?request=GetCapabilities&service=WCS 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:08.387 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:08.388 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"] 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:08.388 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:08.389 [print] Beheer PDOK 
* print operateson 000ms
05:00:08.389 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7939fd42-cf88-42c5-ab3b-232cf232a3ac#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"fff9d7cf-9929-4dde-98b8-06ceda7e5610","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"fff9d7cf-9929-4dde-98b8-06ceda7e5610","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:07.587 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
868ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'cea38797-ea4b-4969-b979-8d25eb543a6c' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cea38797-ea4b-4969-b979-8d25eb543a6c' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:08.453 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
05:00:08.454 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:08.455 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:08.455 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:08.456 [print] Beheer PDOK 
* print operateson 000ms
05:00:08.456 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:07.925 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
874ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'wt-f297898-2640-44c2-bbe9-c0480dt83794' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 866ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f297898-2640-44c2-bbe9-c0480dt83794' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:08.796 [print] https://haleconnect.com/services/bsp/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:08.797 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:08.797 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:08.797 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:08.798 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:08.798 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480dt83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480dt83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:08.275 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'wt-f297898-2640-44c2-bbe9-c0480df83794' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f297898-2640-44c2-bbe9-c0480df83794' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:09.134 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:09.135 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:09.136 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:09.136 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:09.136 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:09.136 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480df83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480df83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:08.393 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
854ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'wt-f297898-2640-44c2-bbe9-c0480dm83794' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 846ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f297898-2640-44c2-bbe9-c0480dm83794' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:09.245 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 001ms
* print protocol1 000ms
05:00:09.247 [print] OGC:WMS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:09.247 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:09.247 [print] OGC:WMS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:09.248 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:09.248 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480dm83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"wt-f297898-2640-44c2-bbe9-c0480dm83794","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:08.460 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
857ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 850ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:09.317 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:09.318 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:09.318 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:09.318 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:09.319 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:09.319 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:08.803 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
849ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'cf69ec50-9849-4afd-853c-ee5621fd336d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 841ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee5621fd336d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:09.651 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WFS&version=1.1.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:09.651 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:09.651 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:09.652 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:09.652 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:09.652 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cf69ec50-9849-4afd-853c-ee56211d336d#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621fd336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621fd336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:09.140 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
864ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 856ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.002 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.002 [print] ["OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.003 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.003 [print] ["OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:10.004 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:10.004 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:09.251 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
858ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'cf69ec50-9849-4afd-853c-ee5621md336d' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 849ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee5621md336d' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.106 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.107 [print] ["OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.107 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.108 [print] ["OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:10.108 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:10.108 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cf69ec50-9849-4afd-853c-ee56211d336d#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621md336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621md336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:09.322 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
847ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 840ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.167 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.168 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.168 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.168 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:10.169 [print] Beheer PDOK 
* print operateson 000ms
05:00:10.169 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:09.656 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
870ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 860ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.522 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wcs?&service=wcs&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.523 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.524 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.524 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
05:00:10.525 [print] Beheer PDOK 
* print operateson 000ms
05:00:10.525 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.007 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 861ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.875 [print] https://inspire.caris.nl/gs5/MarineRegion/ows?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.876 [print] OGC:WFS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.876 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.876 [print] OGC:WFS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:10.877 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie 
* print operateson 000ms
05:00:10.877 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.113 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 001ms
* def title = get response //citation/CI_Citation/title/CharacterString 001ms
* def email = get response //electronicMailAddress/CharacterString 001ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 001ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 001ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:10.976 [print] https:\/\/geodata.nationaalgeoregister.nl\/top10nlv2\/wms?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:10.976 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:10.977 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:10.977 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 001ms
* print organisationpath 000ms
05:00:10.979 [print] Beheer PDOK 
* print operateson 000ms
05:00:10.979 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4b282988-cb91-4bbc-b147-f653014917cb#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
011ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.173 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 010ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
861ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'cb13a608-3d78-4f79-ba60-be63ccd6e268' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cb13a608-3d78-4f79-ba60-be63ccd6e268' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:11.043 [print] https://service.pdok.nl/cbs/vk100/atom/v1_0/index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:11.044 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:11.044 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:11.044 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:11.045 [print] Beheer PDOK 
* print operateson 000ms
05:00:11.045 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.530 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
896ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 883ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4' 001ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:11.422 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_5mtr\/ows?service=WMS&request=getcapabilities&version=1.3.0 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:11.423 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:11.423 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:11.424 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:11.425 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:11.425 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=adn73c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 001ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.880 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
840ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'adn83730-e750-485a-9c0c-39bf9bt72cf8' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 832ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn83730-e750-485a-9c0c-39bf9bt72cf8' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:11.719 [print] https://www.rijkswaterstaat.nl/apps/geoservices/geodata/dmc/bodemhoogte_5mtr_atom_index.xml 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:11.719 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:11.720 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:11.720 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:11.721 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:11.721 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=adn73c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:10.983 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
873ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'tbjk534p-wubf-crbp-cj25-d41611m0gfim' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 855ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611m0gfim' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 007ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:11.865 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:11.866 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:11.867 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:11.867 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:11.868 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:11.868 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=https://www.isotc211.org/2005/gmd&elementsetname=full&id=tbjk534p-wubf-crbp-cj25-d4161160gfim#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:11.048 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'tbjk534p-wubf-crbp-cj25-d41611f0gfim' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 847ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611f0gfim' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:11.903 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:11.903 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:11.904 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:11.904 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:11.905 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:11.905 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=https://www.isotc211.org/2005/gmd&elementsetname=full&id=tbjk534p-wubf-crbp-cj25-d4161160gfim#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
001ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:11.430 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
865ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'tn-2c7040b-c448-451b-bf15-f2416efaadd1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 854ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tn-2c7040b-c448-451b-bf15-f2416efaadd1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:12.292 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.2885ef73-e044-4da4-b9b6-8a461a5353aa_wfs?service=WFS&version=2.0.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:12.293 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:12.294 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:12.294 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:12.295 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:12.295 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416efaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416efaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:11.724 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
859ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'tn-2c7040b-c448-451b-bf15-f2416etaadd1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 851ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tn-2c7040b-c448-451b-bf15-f2416etaadd1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:12.582 [print] https://haleconnect.com/services/bsp/org.292.2885ef73-e044-4da4-b9b6-8a461a5353aa/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:12.582 [print] INSPIRE Atom 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:12.583 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:12.583 [print] INSPIRE Atom 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:12.583 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:12.584 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416etaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416etaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:11.873 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
846ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'tn-2c7040b-c448-451b-bf15-f2416emaadd1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 837ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tn-2c7040b-c448-451b-bf15-f2416emaadd1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:12.717 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.2885ef73-e044-4da4-b9b6-8a461a5353aa_wms?service=WMS&version=1.3.0&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:12.718 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:12.719 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:12.719 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:12.719 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:12.720 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=https://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416emaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"tn-2c7040b-c448-451b-bf15-f2416emaadd1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:11.908 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
871ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 862ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:12.776 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:12.777 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:12.778 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:12.778 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:12.779 [print] Beheer PDOK 
* print operateson 000ms
05:00:12.779 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"] 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:12.299 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
872ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 006ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:13.170 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:13.170 [print] OGC:WCS 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:13.171 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:13.171 [print] OGC:WCS 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:13.172 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:13.172 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=adn73c4a-ef03-4785-b7f6-942e86b385f5#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:12.587 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
869ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 858ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:13.453 [print] https:\/\/inspire.rasdaman.org\/rasdaman\/ows?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:13.454 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"] 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 001ms
* print protocol2 000ms
05:00:13.455 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:13.455 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"] 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:13.456 [print] Rijkswaterstaat 
* print operateson 000ms
05:00:13.456 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=adn73c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:12.723 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
853ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '8a772a52-d659-47b3-a131-82398fb78664' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 845ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:13.574 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:13.575 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:13.576 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:13.576 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:13.577 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:13.577 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:12.782 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
867ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 853ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 005ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:13.646 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:13.648 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:13.648 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:13.649 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:13.650 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:13.650 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 001ms
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms
000ms
* url 'http://nationaalgeoregister.nl/' 000ms
05:00:13.175 karate.env system property was: null 
* def mystorage = Java.type('storage.DataStorage') 000ms
* def db = new mystorage 000ms
* def db = db.setfeature(karate.info.featureFileName) 000ms
* def separator = java.lang.System.getProperty("file.separator") 000ms
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json' 000ms
* def list = karate.read(idfile) 000ms
* def outputpath = db.outputpath() 000ms
* eval db.ensureDirectory(outputpath) 000ms
Tags: @step1
856ms
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire' 000ms
And param service = 'CSW' 000ms
And param version = '2.0.2' 000ms
And param request = 'GetRecordById' 000ms
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f' 000ms
And param elementsetname = 'full' 000ms
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 000ms
When method get 848ms
Then status 200 000ms
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f' 000ms
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue 000ms
* def title = get response //citation/CI_Citation/title/CharacterString 000ms
* def email = get response //electronicMailAddress/CharacterString 000ms
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor') 000ms
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString') 000ms
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2 000ms
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString') 000ms
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href') 000ms
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL') 000ms
* string connectUrl = db.getCorrectedUrl(connectrawUrl) 000ms
* print connectUrl 000ms
05:00:14.030 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities 
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor') 000ms
* print protocol1 000ms
05:00:14.030 [print] #notpresent 
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString') 000ms
* print protocol2 000ms
05:00:14.031 [print] #notpresent 
* string protocol = protocol1 ? protocol1 : protocol2 000ms
* print protocol 000ms
05:00:14.031 [print] #notpresent 
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href 000ms
* print organisationpath 000ms
05:00:14.032 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI) 
* print operateson 000ms
05:00:14.032 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29 
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName 000ms
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv') 000ms
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv') 000ms